package com.example.springboot3_demo.api;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserApi {

    @Value("${server.port}")
    private Integer port;


    @GetMapping
    public String start() {
        return "user start ok! port=" + port;
    }

}
